package pro.shushi.pamirs.demo.api.model.relation;

import pro.shushi.pamirs.meta.annotation.Field;
import pro.shushi.pamirs.meta.annotation.Model;
import pro.shushi.pamirs.meta.base.BaseRelation;
import pro.shushi.pamirs.meta.enmu.NullableBoolEnum;

@Model(displayName = "房类型和票类型关系")
@Model.model(StockRelPrice.MODEL_MODEL)
@Model.Advanced(relationship = NullableBoolEnum.TRUE, unique = {"productStockId,productPriceId"})
public class StockRelPrice extends BaseRelation {

    public final static String MODEL_MODEL = "demo.StockRelPrice";

    @Field(displayName = "库存ID", required = true)
    private Long productStockId;

    @Field(displayName = "价格ID", required = true)
    private Long productPriceId;

}
